
import javax.swing.JOptionPane;

public class Main {

    public static void main(String[] args) {
        try {
    
            int qtde=0;
            
            while (qtde <= 0 || qtde >4)
                qtde = Integer.parseInt(JOptionPane.showInputDialog("Informe a qtde de jogadores"));
            
            Servidor serv = new Servidor(qtde);
            serv.Execute();
            
        } catch (Exception e) {
            System.out.println(e.toString());
        }
    }
}
